import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = [{
  path: '*',
  redirect: '404'
},
{
  path: '/login',
  name: 'login',
  component: r =>
    require.ensure([], () => r(require('../components/Login/Main')), 'login'),
  meta: {
    title: '登录'
  }
},
{
  path: '/404',
  name: '404',
  component: r =>
    require.ensure([], () => r(require('../components/404')), '404'),
  meta: {
    title: '404'
  }
},
{
  path: '/userLogin',
  name: 'userLogin',
  component: r =>
    require.ensure([], () => r(require('../components/Login/userLogin')), 'userLogin'),
  meta: {
    title: '账号登录'
  }
},
{
  name: 'main',
  path: '/',
  redirect: {
    name: 'home'
  },
  component: r =>
    require.ensure([], () => r(require('../components/MainContent')), 'main'),
  meta: {
    title: '主页'
  },
  children: [{
    path: '/home',
    name: 'home',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Home/Main')),
        'home'
      ),
    meta: {
      title: '看板'
    }
  },
  {
    path: '/userInfo',
    name: 'userInfo',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/UserManage/Main')), // 用户管理
        'userInfo'
      ),
    meta: {
      title: '用户管理'
    }
  },
  {
    path: '/buildingStructure',
    name: 'buildingStructure',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/BuildingStructure')), // 建筑物结构
        'buildingStructure'
      ),
    meta: {
      title: '建筑物结构'
    }
  },
  {
    path: '/assetClassLib',
    name: 'assetClassLib',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/AssetClassLib')), // 资产类别库
        'assetClassLib'
      ),
    meta: {
      title: '资产类别库'
    }
  },
  {
    path: '/maintainStandardLib',
    name: 'maintainStandardLib',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/MaintainStandardLib')), // 维保标准库
        'maintainStandardLib'
      ),
    meta: {
      title: '维保标准库'
    }
  },
  {
    path: '/userTransDevice',
    name: 'userTransDevice',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/UserTransDevice')), // 通信服务标识
        'userTransDevice'
      ),
    meta: {
      title: '通信服务标识'
    }
  },
  {
    path: '/unitInit',
    name: 'unitInit',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/UnitInit/Main')), // 单位初始化
        'unitInit'
      ),
    meta: {
      title: '单位初始化'
    }
  },
  {
    path: '/fireFacstruct',
    name: 'fireFacstruct',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/FireFacstruct/Main')), // 物联设备维护
        'fireFacstruct'
      ),
    meta: {
      title: '物联设备维护'
    }
  },
  {
    path: '/equipLinkClassLib',
    name: 'equipLinkClassLib',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/EquipLinkClassLib/Main')), // 物联设备类别
        'equipLinkClassLib'
      ),
    meta: {
      title: '物联设备类别'
    }
  },
  {
    path: '/dicMaintenance',
    name: 'dicMaintenance',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/DicMaintenance/Main')), // 数据字典
        'dicMaintenance'
      ),
    meta: {
      title: '数据字典'
    }
  },
  {
    path: '/platTransDevice',
    name: 'platTransDevice',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/PlatTransDevice/Main')),
        'platTransDevice'
      ),
    meta: {
      title: '平台通信服务器维护'
    }
  },
  {
    path: '/platVersion',
    name: 'platVersion',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/PlatVersion/Main')),
        'platVersion'
      ),
    meta: {
      title: '平台版本维护'
    }
  },
  {
    path: '/temporaryTask',
    name: 'temporaryTask',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/TemporaryTask/Main')),
        'temporaryTask'
      ),
    meta: {
      title: '临时任务'
    }
  },
  {
    path: '/maintenanceTask',
    name: 'maintenanceTask',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Maintenance/MaintenanceTask')),
        'maintenanceTask'
      ),
    meta: {
      title: '维保任务'
    }
  },
  {
    path: '/hiddenDangerRectification',
    name: 'hiddenDangerRectification',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/HiddenDangerRectification/Main')),
        'hiddenDangerRectification'
      ),
    meta: {
      title: '隐患整改'
    }
  },
  {
    path: '/handover',
    name: 'handover',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Duty/Handover')),
        'handover'
      ),
    meta: {
      title: '交接班'
    }
  },
  {
    path: '/assetList',
    name: 'assetList',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Asset/AssetList')),
        'assetList'
      ),
    meta: {
      title: '资产列表'
    }
  },
  {
    path: '/maintenancePlan',
    name: 'maintenancePlan',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Asset/MaintenancePlan')),
        'maintenancePlan'
      ),
    meta: {
      title: '维保计划'
    }
  },
  {
    path: '/baseInfoMaintain',
    name: 'baseInfoMaintain',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/BaseInfoMaintain')),
        'baseInfoMaintain'
      ),
    meta: {
      title: '单位基础信息'
    }
  },
  {
    path: '/maintenReport',
    name: 'maintenReport',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/MaintenReport')),
        'maintenReport'
      ),
    meta: {
      title: '维保报告'
    }
  },
  {
    path: '/maintenAnalysis',
    name: 'maintenAnalysis',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/MaintenAnalysis/Main')),
        'maintenAnalysis'
      ),
    meta: {
      title: '维保分析'
    }
  },
  {
    path: '/equipLink',
    name: 'equipLink',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/EquipmentThings/Main')),
        'equipLink'
      ),
    meta: {
      title: '设备物联'
    }
  },
  {
    path: '/signRecord',
    name: 'signRecord',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Duty/SignRecord')),
        'signRecord'
      ),
    meta: {
      title: '签到记录'
    }
  },
  {
    path: '/unitSafetyAnalysis',
    name: 'unitSafetyAnalysis',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/UnitSafetyAnalysis')),
        'unitSafetyAnalysis'
      ),
    meta: {
      title: '安全评估'
    }
  },
  {
    path: '/alarmAnalysis',
    name: 'alarmAnalysis',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/AlarmAnalysis')),
        'alarmAnalysis'
      ),
    meta: {
      title: '警情分析'
    }
  },
  {
    path: '/hiddenDangerAnalysis',
    name: 'hiddenDangerAnalysis',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/HiddenDangerAnalysis')),
        'hiddenDangerAnalysis'
      ),
    meta: {
      title: '隐患分析'
    }
  },
  {
    path: '/nineSmallVenuesSet',
    name: 'nineSmallVenuesSet',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/NineSmallVenuesSet')),
        'nineSmallVenuesSet'
      ),
    meta: {
      title: '小微场所维护'
    }
  },
  {
    path: '/videoSet',
    name: 'videoSet',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/VideoSet/Main')),
        'videoSet'
      ),
    meta: {
      title: '视频维护'
    }
  },
  {
    path: '/cityMapMark',
    name: 'cityMapMark',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/CityMapMark/Main')),
        'cityMapMark'
      ),
    meta: {
      title: '地图标注'
    }
  },
  {
    path: '/cityResourceMark',
    name: 'cityResourceMark',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/CityResourceMark/Main')),
        'cityResourceMark'
      ),
    meta: {
      title: '平台资源标注'
    }
  },
  {
    path: '/fireCarManage',
    name: 'fireCarManage',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/FireCarManage/Main')),
        'fireCarManage'
      ),
    meta: {
      title: '消防车辆管理'
    }
  },
  {
    path: '/areaManage',
    name: 'areaManage',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/AreaManage/Main')),
        'areaManage'
      ),
    meta: {
      title: '行政区管理'
    }
  },
  {
    path: '/fireStationManage',
    name: 'fireStationManage',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/FireStationManage/Main')),
        'fireStationManage'
      ),
    meta: {
      title: '消防站管理'
    }
  },
  {
    path: '/hydrantManage',
    name: 'hydrantManage',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/HydrantManage/Main')),
        'hydrantManage'
      ),
    meta: {
      title: '市政消火栓管理'
    }
  },
  {
    path: '/miniFireStationManage',
    name: 'miniFireStationManage',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/MiniFireStationManage/Main')),
        'miniFireStationManage'
      ),
    meta: {
      title: '微型消防站管理'
    }
  },
  {
    path: '/naturalWaterManage',
    name: 'naturalWaterManage',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/NaturalWaterManage/Main')),
        'naturalWaterManage'
      ),
    meta: {
      title: '天然水源管理'
    }
  },
  {
    path: '/UsefulTelSet',
    name: 'UsefulTelSet',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/UsefulTelSet')),
        'UsefulTelSet'
      ),
    meta: {
      title: '常用电话设置'
    }
  },
  {
    path: '/QuestionBank',
    name: 'QuestionBank',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Examination/QuestionBank/List')),
        'QuestionBank'
      ),
    meta: {
      title: '题库'
    }
  },
  {
    path: '/platVeidoSet',
    name: 'platVeidoSet',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/PlatVeidoSet/Main')),
        'platVeidoSet'
      ),
    meta: {
      title: '平台视频分配'
    }
  },
  {
    path: '/threeDMaintain',
    name: 'threeDMaintain',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/ThreeDMaintain/Main')),
        'threeDMaintain'
      ),
    meta: {
      title: '三维信息'
    }
  },
  {
    path: '/resetAlarm',
    name: 'resetAlarm',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Police/ResetAlarm')),
        'resetAlarm'
      ),
    meta: {
      title: '已复位警情'
    }
  },
  {
    path: '/unresetAlarm',
    name: 'unresetAlarm',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Police/UnresetAlarm')),
        'unresetAlarm'
      ),
    meta: {
      title: '未复位警情'
    }
  },
  {
    path: '/realTimeHighRiskSignal',
    name: 'realTimeHighRiskSignal',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/HighRiskSignal/RealTimeHighRiskSignal')),
        'realTimeHighRiskSignal'
      ),
    meta: {
      title: '实时高危信号'
    }
  },
  {
    path: '/historicalHighRiskSignal',
    name: 'historicalHighRiskSignal',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/HighRiskSignal/HistoricalHighRiskSignal')),
        'historicalHighRiskSignal'
      ),
    meta: {
      title: '历史高危信号'
    }
  },

  {
    path: '/indoorMapMark',
    name: 'indoorMapMark',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/IndoorMap/IndoorMark')),
        'indoorMapMark'
      ),
    meta: {
      title: '室內地图标注'
    }
  },
  {
    path: '/baiduMapMark',
    name: 'baiduMapMark',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/BaiduMap/BaiduMark')),
        'baiduMapMark'
      ),
    meta: {
      title: 'Baidu地图标注'
    }
  },
  {
    path: '/GridManage',
    name: 'GridManage',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/GridManage/Main')),
        'GridManage'
      ),
    meta: {
      title: '网格管理'
    }
  },
  {
    path: '/inspectRecord',
    name: 'inspectRecord',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Inspectx/InspectRecord')),
        'inspectRecord'
      ),
    meta: {
      title: '巡检记录'
    }
  },
  {
    path: '/pointType',
    name: 'pointType',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Inspectx/PointType')),
        'pointType'
      ),
    meta: {
      title: '点位类别'
    }
  },
  {
    path: '/inspectPoint',
    name: 'inspectPoint',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Inspectx/InspectPoint')),
        'inspectPoint'
      ),
    meta: {
      title: '巡检点位'
    }
  },
  {
    path: '/pointPhoto',
    name: 'pointPhoto',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Inspectx/PointPhoto'))
      ),
    meta: {
      title: '点位图片'
    }
  },
  {
    path: '/inspectArea',
    name: 'inspectArea',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Inspect/InspectArea')),
        'inspectArea'
      ),
    meta: {
      title: '巡检路线'
    }
  },
  {
    path: '/inspectPlan',
    name: 'inspectPlan',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Inspectx/InspectPlan')),
        'inspectPlan'
      ),
    meta: {
      title: '巡检计划'
    }
  },
  {
    path: '/dutyRecord',
    name: 'dutyRecord',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Duty/DutyRecord')),
        'dutyRecord'
      ),
    meta: {
      title: '打卡记录'
    }
  },
  {
    path: '/dutySchedule',
    name: 'dutySchedule',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Duty/DutySchedule')),
        'dutySchedule'
      ),
    meta: {
      title: '值班表'
    }
  },
  {
    path: '/supervise',
    name: 'supervise',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Duty/Supervise')),
        'supervise'
      ),
    meta: {
      title: '查岗'
    }
  },
  {
    path: '/jobApplication',
    name: 'jobApplication',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/JobApplication/Main')),
        'jobApplication'
      ),
    meta: {
      title: '作业申请'
    }
  },
  {
    path: '/addressBook',
    name: 'addressBook',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/AddressBook')),
        'addressBook'
      ),
    meta: {
      title: '通讯录'
    }
  },
  {
    path: '/noticeMaintain',
    name: 'noticeMaintain',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/NoticeMaintain')),
        'noticeMaintain'
      ),
    meta: {
      title: '公告维护'
    }
  },
  {
    path: '/layeredGraph',
    name: 'layeredGraph',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Layered/LayeredGraph')),
        'layeredGraph'
      ),
    meta: {
      title: '分层图预览'
    }
  },
  {
    path: '/emergencyPlan',
    name: 'emergencyPlan',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/EmergencyPlan')),
        'emergencyPlan'
      ),
    meta: {
      title: '应急预案'
    }
  },
  {
    path: '/safeRule',
    name: 'safeRule',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/SafeRule')),
        'safeRule'
      ),
    meta: {
      title: '安全制度'
    }
  },
  {
    path: '/fireDrill',
    name: 'fireDrill',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/FireDrillList')),
        'fireDrill'
      ),
    meta: {
      title: '消防演习'
    }
  },
  {
    path: '/SmsNotice',
    name: 'SmsNotice',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/SmsNotice')),
        'SmsNotice'
      ),
    meta: {
      title: '短信通知'
    }
  },
  {
    path: '/EmailNotice',
    name: 'EmailNotice',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/EmailNotice')),
        'EmailNotice'
      ),
    meta: {
      title: '邮件通知'
    }
  },
  {
    path: '/PhoneVoiceNotice',
    name: 'PhoneVoiceNotice',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/PhoneVoiceNotice')),
        'PhoneVoiceNotice'
      ),
    meta: {
      title: '电话语音通知'
    }
  },
  {
    path: '/carPassRecord',
    name: 'carPassRecord',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/CarPassRecord')),
        'carPassRecord'
      ),
    meta: {
      title: '行车记录'
    }
  },
  {
    path: '/phoneCallRecord',
    name: 'phoneCallRecord',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Archives/PhoneCallRecord')),
        'phoneCallRecord'
      ),
    meta: {
      title: '电话呼叫记录'
    }
  },
  {
    path: '/highRiskSignalAnalysis',
    name: 'highRiskSignalAnalysis',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/HighRiskSignalAnalysis')),
        'highRiskSignalAnalysis'
      ),
    meta: {
      title: '高危信号分析'
    }
  },
  {
    path: '/keyProblemAnalysis',
    name: 'keyProblemAnalysis',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/KeyProblemAnalysis')),
        'keyProblemAnalysis'
      ),
    meta: {
      title: '重大问题分析'
    }
  },
  {
    path: '/inspectionAnalysis',
    name: 'inspectionAnalysis',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/InspectionAnalysisx')),
        'inspectionAnalysis'
      ),
    meta: {
      title: '巡检分析'
    }
  },
  {
    path: '/dutyAnalysis',
    name: 'dutyAnalysis',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/DutyAnalysis')),
        'dutyAnalysis'
      ),
    meta: {
      title: '值班分析'
    }
  },
  {
    path: '/oneClickAlarmList',
    name: 'oneClickAlarmList',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/OneClickAlarmList')),
        'oneClickAlarmList'
      ),
    meta: {
      title: '一键报警'
    }
  },
  {
    path: '/fireReport',
    name: 'fireReport',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/StatisticsAnalysis/FireReport/Main')),
        'fireReport'
      ),
    meta: {
      title: '消防报表'
    }
  },
  {
    path: '/realTimeKeyIssue',
    name: 'realTimeKeyIssue',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/KeyIssue/RealTimeKeyIssue')),
        'realTimeKeyIssue'
      ),
    meta: {
      title: '重大问题上报'
    }
  },
  {
    path: '/historicalKeyIssue',
    name: 'historicalKeyIssue',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/KeyIssue/HistoricalKeyIssue')),
        'historicalKeyIssue'
      ),
    meta: {
      title: '历史问题上报'
    }
  },
  {
    path: '/Learn',
    name: 'Learn',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Learn/LearnList')),
        'Learn'
      ),
    meta: {
      title: '学习'
    }
  },
  {
    path: '/ExaminationPaper',
    name: 'ExaminationPaper',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Examination/ExaminationPaper/List')),
        'ExaminationPaper'
      ),
    meta: {
      title: '试卷'
    }
  },
  {
    path: '/ExaminationTime',
    name: 'ExaminationTime',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Examination/ExaminationTime/List')),
        'ExaminationTime'
      ),
    meta: {
      title: '考试场次'
    }
  },
  {
    path: '/StaffPerformance',
    name: 'StaffPerformance',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Performance/StaffPerformanceList')),
        'StaffPerformance'
      ),
    meta: {
      title: '员工绩效'
    }
  },
  {
    path: '/OrgPerformance',
    name: 'OrgPerformance',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Performance/OrgPerformanceList')),
        'OrgPerformance'
      ),
    meta: {
      title: '组织绩效'
    }
  },
  {
    path: '/PerformanceConfig',
    name: 'PerformanceConfig',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/Performance/PerformanceConfig')),
        'PerformanceConfig'
      ),
    meta: {
      title: '绩效配置'
    }
  },
  {
    path: '/OrgStructure',
    name: 'OrgStructure',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/OrgStructure/Main')),
        'OrgStructure'
      ),
    meta: {
      title: '组织结构'
    }
  },
  {
    path: '/ExamAnalysis',
    name: 'ExamAnalysis',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/ExamAnalysis/Main')),
        'ExamAnalysis'
      ),
    meta: {
      title: '考试分析'
    }
  },
  {
    path: '/safetyConfig',
    name: 'safetyConfig',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/SafetyScore')),
        'safetyConfig'
      ),
    meta: {
      title: '安全评估设置'
    }
  },
  {
    path: '/pushConfig',
    name: 'pushConfig',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SysConfig/PushConfig')),
        'pushConfig'
      ),
    meta: {
      title: '消息提醒设置'
    }
  },
  {
    path: '/smartSpray',
    name: 'smartSpray',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SmartSpray/Main')),
        'smartSpray'
      ),
    meta: {
      title: '看板'
    }
  },
  {
    path: '/fireAlarmDetail',
    name: 'fireAlarmDetail',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SmartSpray/FireAlarmDetail')),
        'fireAlarmDetail'
      ),
    meta: {
      title: '报警详情'
    }
  },
  {
    path: '/fireAlarmList',
    name: 'fireAlarmList',
    component: r =>
      require.ensure(
        [],
        () => r(require('../components/SmartSpray/FireAlarmList')),
        'fireAlarmList'
      ),
    meta: {
      title: '警情管理'
    }
  }
  ]
}
]

const router = new Router({
  routes
})

export default router
